/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ykht.proj.common.core.util.R;
import com.ykht.proj.coupon.entity.CnBrand;
import com.ykht.proj.coupon.entity.FxConfReward;
import com.ykht.proj.coupon.entity.FxConfShop;
import com.ykht.proj.coupon.entity.FxWaiterExt;
import com.ykht.proj.coupon.vo.ConfRewardShopVo;
import com.ykht.proj.coupon.vo.FxConfRewardVO;

import java.util.List;
import java.util.Map;

/**
 * 品牌邀请、转发、核销配置表
 *
 * @author proj code generator
 * @date 2021-02-01 19:00:18
 */
public interface FxConfRewardService extends IService<FxConfReward> {

    IPage<FxConfRewardVO> queryByPage(Page page, FxConfRewardVO fxConfRewardVO);

	List<FxConfRewardVO> findById(Long shopId);

	IPage<FxConfRewardVO> findListById(Page page, FxConfRewardVO fxConfRewardVO);

	Object insert(FxConfRewardVO fxConfRewardVO);

	Object updateConf(List<FxConfRewardVO> fxConfRewardVoX);

	Object findShopAndBrand(Long shopId);

	List<FxConfRewardVO> findConfReward(FxConfRewardVO fxConfRewardVO,CnBrand cnBrand);

	Object updateConfReward(FxConfRewardVO fxConfRewardVo,CnBrand cnBrand);

    Object delConfReward(Long id);

    FxConfRewardVO findConfByBrandIdAndShopId(FxWaiterExt userExt, Integer fenXiaoType);

    ConfRewardShopVo getConfRewardShopVo(ConfRewardShopVo temp);

    Object queryAllShopByBrandId(CnBrand cnBrand,FxConfRewardVO fxConfRewardVO);

	Object updateShowHave(CnBrand cnBrand, String[] arr);

	List<FxConfShop> judgeConfIsOk(CnBrand cnBrand, String[] arr,FxConfRewardVO fxConfRewardVO);

	void updateStatus();

	List<FxConfShop> judgeConf2IsOk(CnBrand cnBrand, String[] arr, FxConfRewardVO fxConfRewardVO);

	Object getAllShopByBrandId(Object data, FxConfRewardVO fxConfRewardVO);
}
